import Vue from 'vue'
import App from './App.vue'
import router from "./router/index"
//这里后面可以按需引入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import MyRequest from "@/assets/js/MyRequest";
import * as echarts from 'echarts';
Vue.config.productionTip = false

Vue.use(ElementUI);
/**
 * api对应的协议、ip、port
 * @type {string}
 */
window.HTTP_IP_PORT = "http://localhost:8888"
//表示的是问题的类型
window.QUES_STYLE = {
  SINGLE : 1,
  MULTI : 2,
  BLANKS : 3,
  MATRIX : 4,
  SCALE: 5,
};
new Vue({
  render: h => h(App),
  router,
  beforeCreate() {
    Vue.prototype.$bus = this;
    window.myRequest = MyRequest;
    this.echarts = echarts;
  }
}).$mount('#app')
